//
//  CountManagerViewController.m
//  FlowerRainGround
//
//  Created by lanou on 16/4/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "CountManagerViewController.h"
#import "CountManagerView.h"
#import "ChanepasswordViewController.h"
@interface CountManagerViewController ()

@end

@implementation CountManagerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
    
    self.navigationItem.title = @"账号管理";
    CountManagerView *countView = [[CountManagerView alloc] initWithFrame:self.view.bounds];
    countView.changeNumberButton.block = ^(){
        [self changePasswordView];
    };
    [self.view addSubview:countView];
    
    
    
    
    // Do any additional setup after loading the view from its nib.
}

//点击改密
- (void)changePasswordView
{
    ChanepasswordViewController *changeVC  = [[ChanepasswordViewController alloc] init];
    [self.navigationController pushViewController:changeVC animated:YES];
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
